if ( empty( $opts['bypassReadOnly'] ) && $this->isReadOnly() ) {
return Status::newFatal( 'backend-fail-readonly', $this->name, $this->readOnly );
}
+ if ( !count( $ops ) ) {
+ return Status::newGood(); // nothing to do
+ }
if ( empty( $opts['force'] ) ) { // sanity
unset( $opts['nonLocking'] );
}
if ( empty( $opts['bypassReadOnly'] ) && $this->isReadOnly() ) {
return Status::newFatal( 'backend-fail-readonly', $this->name, $this->readOnly );
}
+ if ( !count( $ops ) ) {
+ return Status::newGood(); // nothing to do
+ }
foreach ( $ops as &$op ) {
$op['overwrite'] = true; // avoids RTTs in key/value stores
if ( isset( $op['disposition'] ) ) { // b/c (MW 1.20)
wfProfileIn( __METHOD__ . '-' . $this->name );
$status = Status::newGood();
- if ( !count( $ops ) ) {
- return $status; // nothing to do
- }
-
// Fix up custom header name/value pairs...
$ops = array_map( array( $this, 'stripInvalidHeadersFromOp' ), $ops );
wfProfileIn( __METHOD__ . '-' . $this->name );
$status = Status::newGood();
- if ( !count( $ops ) ) {
- return $status; // nothing to do
- }
-
// Fix up custom header name/value pairs...
$ops = array_map( array( $this, 'stripInvalidHeadersFromOp' ), $ops );